<?php
namespace Home\Model;
use Think\Model;
class UsersModel extends Model{
    protected $connection = array(
        'db_type'  => 'mysql',
        'db_user'  => 'root',
        'db_pwd'   => '',
        'db_host'  => '192.168.1.7',
        'db_port'  => '3306',
        'db_name'  => 'webtasks',
	
    );
    
    public function getUserList($cond=null){
    	$res = M('users','','mysql://root:@192.168.1.7:3306/webtasks')->where($cond)
    		->select();
    	return $res;
    }
}
?>